package org.kernely.ui.admin;

import org.kernely.ui.mvp.IKernelyView;

import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.NativeSelect;
import com.vaadin.ui.VerticalLayout;

/**
 * View class of the ddministration of Kernely.
 */
public class KernelyAdministrationPageView extends VerticalLayout implements IKernelyView {

	private NativeSelect homePagesBox;
	private Button applyButton;
	
	public KernelyAdministrationPageView(){
		homePagesBox = new NativeSelect();
		homePagesBox.setNullSelectionAllowed(false);
		applyButton = new Button("Apply changes");
		
		this.addComponent(new Label("You can choose the default home page here."));
		this.addComponent(homePagesBox);
		this.addComponent(applyButton);
		this.setSizeFull();
	}
	
	/**
	 * Unused method.
	 */
	@Override
	public Component getComponent() {
		return this;
	}

	/**
	 * Gets the homePagesBox
	 * @return the homePagesBox
	 */
	public NativeSelect getHomePagesBox() {
		return homePagesBox;
	}

	/**
	 * Gets the applyButton
	 * @return the applyButton
	 */
	public Button getApplyButton() {
		return applyButton;
	}

	
	
}
